package com.senseuni.da

import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import com.senseuni.da.databinding.ActivityMqttTestBinding
import com.senseuni.da.iot.MQTTManager

class MqttTestActivity : AppCompatActivity() {

    private lateinit var binding:ActivityMqttTestBinding

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        binding = ActivityMqttTestBinding.inflate(layoutInflater)
        setContentView(binding.root)


        binding.buttonAdEventUpload.setOnClickListener {
            MQTTManager.instance.reportAdEvent()
        }

        binding.btnDeviceBasicReport.setOnClickListener {
            MQTTManager.instance.reportBasic()
        }

    }


}